package com.guyu.plugin.log.event;

import com.guyu.plugin.log.enums.BusinessStatus;
import com.guyu.plugin.log.enums.BusinessType;
import jakarta.servlet.http.HttpServletRequest;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 登录事件
 *
 * @author Lion Li
 */

@Data
public class LoginLogEvent implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 此次登录的客户端设备类型
     */
    public String clientType;
    /**
     * 账号类型
     */
    private String loginType;
    /**
     * 账号id
     */
    private Object loginId;
    /**
     * token值
     */
    private String tokenValue;
    /**
     * 事件类型
     */
    private BusinessType type;
    /**
     * 操作状态
     */
    private BusinessStatus status;
    /**
     * 操作时间
     */
    private Long operTime;
    /**
     * 请求体
     */
    private HttpServletRequest request;


}
